package com.lz.ResourceTest;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.io.Resource;

/**
 * spring的资源引擎测试
 */
@SpringBootApplication
public class ResourceApp {
    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext context = SpringApplication.run(ResourceApp.class, args);
        Resource[] resource = context.getResources("classpath*:META-INF/spring.factories");
        for (Resource resource1 : resource) {
            System.out.println(resource1.toString());
        }
    }
}
